import { createGlobalState } from '@vueuse/core'
import { ref, computed } from 'vue'

export const useGlobalState = createGlobalState(() => {
    const count = ref(1)
    const double = computed(() => count.value * 2)

    return { count, double }
})